home *** CD-ROM | disk | FTP | other *** search
- unit TDM58_TLB;
-
- // ************************************************************************ //
- // WARNING
- // -------
- // The types declared in this file were generated from data read from a
- // Type Library. If this type library is explicitly or indirectly (via
- // another type library referring to this type library) re-imported, or the
- // 'Refresh' command of the Type Library Editor activated while editing the
- // Type Library, the contents of this file will be regenerated and all
- // manual modifications will be lost.
- // ************************************************************************ //
-
- // PASTLWTR : $Revision: 1.88.1.0.1.0 $
- // File generated on 2000/05/16 12:34:22 from Type Library described below.
-
- // ************************************************************************ //
- // Type Lib: D:\usr\bob\magazine\DELPHI.MAG\#59\src\TDM59.tlb (1)
- // IID\LCID: {3F99C321-2271-11D4-BF83-00104BF89DAD}\0
- // Helpfile:
- // DepndLst:
- // (1) v2.0 stdole, (C:\WINNT\System32\STDOLE2.TLB)
- // (2) v4.0 StdVCL, (C:\WINNT\System32\STDVCL40.DLL)
- // ************************************************************************ //
- {$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
- interface
-
- uses Windows, ActiveX, Classes, Graphics, OleServer, OleCtrls, StdVCL;
-
- // *********************************************************************//
- // GUIDS declared in the TypeLibrary. Following prefixes are used:
- // Type Libraries : LIBID_xxxx
- // CoClasses : CLASS_xxxx
- // DISPInterfaces : DIID_xxxx
- // Non-DISP interfaces: IID_xxxx
- // *********************************************************************//
- const
- // TypeLibrary Major and minor versions
- TDM58MajorVersion = 1;
- TDM58MinorVersion = 0;
-
- LIBID_TDM58: TGUID = '{3F99C321-2271-11D4-BF83-00104BF89DAD}';
-
- IID_IDrBob42: TGUID = '{3F99C322-2271-11D4-BF83-00104BF89DAD}';
- CLASS_DrBob42: TGUID = '{3F99C324-2271-11D4-BF83-00104BF89DAD}';
- type
-
- // *********************************************************************//
- // Forward declaration of types defined in TypeLibrary
- // *********************************************************************//
- IDrBob42 = interface;
- IDrBob42Disp = dispinterface;
-
- // *********************************************************************//
- // Declaration of CoClasses defined in Type Library
- // (NOTE: Here we map each CoClass to its Default Interface)
- // *********************************************************************//
- DrBob42 = IDrBob42;
-
-
- // *********************************************************************//
- // Interface: IDrBob42
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {3F99C322-2271-11D4-BF83-00104BF89DAD}
- // *********************************************************************//
- IDrBob42 = interface(IDispatch)
- ['{3F99C322-2271-11D4-BF83-00104BF89DAD}']
- procedure OnStartPage(const AScriptingContext: IUnknown); safecall;
- procedure OnEndPage; safecall;
- procedure ASProduce; safecall;
- end;
-
- // *********************************************************************//
- // DispIntf: IDrBob42Disp
- // Flags: (4416) Dual OleAutomation Dispatchable
- // GUID: {3F99C322-2271-11D4-BF83-00104BF89DAD}
- // *********************************************************************//
- IDrBob42Disp = dispinterface
- ['{3F99C322-2271-11D4-BF83-00104BF89DAD}']
- procedure OnStartPage(const AScriptingContext: IUnknown); dispid 1;
- procedure OnEndPage; dispid 2;
- procedure ASProduce; dispid 3;
- end;
-
- // *********************************************************************//
- // The Class CoDrBob42 provides a Create and CreateRemote method to
- // create instances of the default interface IDrBob42 exposed by
- // the CoClass DrBob42. The functions are intended to be used by
- // clients wishing to automate the CoClass objects exposed by the
- // server of this typelibrary.
- // *********************************************************************//
- CoDrBob42 = class
- class function Create: IDrBob42;
- class function CreateRemote(const MachineName: string): IDrBob42;
- end;
-
- implementation
-
- uses ComObj;
-
- class function CoDrBob42.Create: IDrBob42;
- begin
- Result := CreateComObject(CLASS_DrBob42) as IDrBob42;
- end;
-
- class function CoDrBob42.CreateRemote(const MachineName: string): IDrBob42;
- begin
- Result := CreateRemoteComObject(MachineName, CLASS_DrBob42) as IDrBob42;
- end;
-
- end.
-